<?php
require_once('configure.php'); 
$query = "SELECT DISTINCT(kelurahan) FROM kodepos WHERE kelurahan  LIKE '{$_GET['q']}%' 
AND UPPER(kecamatan) ='".urldecode(strtoupper($_GET['kecamatan']))."'
GROUP BY kelurahan"; 
$res = my_query($query);
 
while( $rw=my_fetch_array($res) ){
	 echo strtoupper ($rw['kelurahan'] )."\n";
}
exit;